#ifndef CDRAWTEXT_H
#define CDRAWTEXT_H

#include <QObject>
#include <QPainter>
#include<QGraphicsItem>

class CDrawText:public QObject,public QGraphicsRectItem
{
public:
    CDrawText();
    virtual ~CDrawText();
public:
    void setText(QString sText);
    void setPoint(QPoint point);
    void paint(QPainter *painter,const QStyleOptionGraphicsItem* option,QWidget *widget);
private:
    QString m_sText;
    QPoint m_Point;
};

#endif // CDRAWTEXT_H
